﻿using Microsoft.AspNetCore.Mvc;

namespace GroupTwo_MVC.Controllers
{
    public class SaleOrderController : Controller
    {
        private readonly IConfiguration _configuration;

        public SaleOrderController(IConfiguration configuration)
        {
            _configuration = configuration;
        }
        /// <summary>
        /// 销售订单列表页面
        /// </summary>
        /// <returns></returns>
        public IActionResult GetSaleOrder()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 销售订单添加页面
        /// </summary>
        /// <returns></returns>
        public IActionResult AddSaleOrder()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 销售订单修改页面
        /// </summary>
        /// <returns></returns>
        public IActionResult UptSaleOrder()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 打印功能
        /// </summary>
        /// <returns></returns>
        public IActionResult HiPrint()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
    }
}
